﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Agriculture.Domain
{
    /// <summary>
    /// 订单药品关联表
    /// </summary>
    public class OrderMedicineModel : EntityModel
    {
        /// <summary>
        /// 订单ID
        /// </summary>
        public int OrderId { get; set; }
        
        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrderNo { get; set; }

        /// <summary>
        /// 药品名称
        /// </summary>
        public string MedicineName { get; set; }

        /// <summary>
        /// 药品规格
        /// </summary>
        public string Specification { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 用药说明
        /// </summary>
        public string Usage { get; set; }
        
        /// <summary>
        /// 药品ID
        /// </summary>
        public int? MedicineId { get; set; }
        
        /// <summary>
        /// 是否删除(0:未删除，1:已删除)
        /// </summary>
        public int IsDeleted { get; set; }

        /// <summary>
        /// 药品对象（导航属性）
        /// </summary>
        public virtual MedicineModel Medicine { get; set; }
    }
}
